cmake_minimum_required(VERSION 3.14)
project(CefWebEngineCore)

include(../../cmake/qt.cmake)
include(../../cmake/cef.cmake)

find_package(Qt6 COMPONENTS Gui)

include_directories(../../include/)

file(GLOB SOURCE_FILE_LIST 
    ../../include/CefWebEngineCore/*.h 
    *.cpp
)

add_definitions(-DCEFWEBENGINECORE_LIB)

add_library(${PROJECT_NAME} SHARED ${SOURCE_FILE_LIST})

target_link_libraries(${PROJECT_NAME} 
    PUBLIC Qt::Gui PRIVATE libcef libcef_dll_wrapper
)